Conservation of network addresses for testing in a virtualized computing system

ABSTRACT

An example method of testing a cluster network for an application management system having a cluster of virtual machines (VMs) is described. The VMs execute on a virtualization layer in a cluster of hosts connected to a physical network, and the application management system integrated with the virtualization layer. The method includes: receiving, at an edge node from an external network, a plurality of test applications; executing, at the edge node, the plurality of test applications, the edge node connected to the cluster network, the plurality of test applications communicating, through the cluster network, with a master server of the application management system, and with applications executing in the VMs managed by the master server; and returning, from the edge node, responses generated by the plurality of test applications to the external network.

CROSS-REFERENCE

This application is based upon and claims the benefit of priority from International Patent Application No. PCT/CN2020/102669, filed on Jul. 17, 2020, the entire contents of which are incorporated herein by reference.

BACKGROUND

Applications today are deployed onto a combination of virtual machines (VMs), containers, application services, and more. For deploying such applications, a container orchestration platform known as Kubernetes® has gained in popularity among application developers. Kubernetes provides a platform for automating deployment, scaling, and operations of application containers across clusters of hosts. It offers flexibility in application development and offers several useful tools for scaling.

In a Kubernetes system, containers are grouped into logical unit called “pods” that execute on nodes. Containers in the same pod share the same resources and network and maintain a degree of isolation from containers in other pods. The pods are distributed across nodes of the Kubernetes system that form a node cluster. A cluster network for the node cluster facilitates container-to-container, pod-to-pod, pod-to-service, and external-to-service communications.

In a conventional Kubernetes system, each node comprises a host operating system (OS), such as Linux®, executing on a hardware platform. A container engine (e.g., Docker®) executes on the host OS, which supports the containers of the pods. Thus, a node includes multiple containers and control plane components executing on a shared OS. The cluster network is implemented using a physical network connecting the nodes directly or through external virtualization (e.g., virtual local area networks (VLANs)). Such a configuration results in security and isolation risks, since a single container can consume all the resources of the node, starving other containers for resources. Further, a vulnerability in one container can escape the container and infect other containers or control plane components running on the shared OS. A Kubernetes system can operate on a virtualized computing system in various configurations that mitigate security and isolation risks of the shared host OS. However, the duster network in such virtualized configurations is typically implemented using more complex software-defined (SD) network systems that provide software abstractions of layer-2 to layer-7 network services. It is desirable to provide dynamic configuration of the cluster network in a virtualized computing system having such an SD network system.

SUMMARY

In an embodiment, a method of testing a cluster network for an application management system having a cluster of virtual machines (VMs) is described. The VMs execute on a virtualization layer in a cluster of hosts connected to a physical network, and the application management system integrated with the virtualization layer. The method includes: receiving, at an edge node from an external network, a plurality of test applications; executing, at the edge node, the plurality of test applications, the edge node connected to the cluster network, the plurality of test applications communicating, through the cluster network, with a master server of the application management system, and with applications executing in the VMs managed by the master server; and returning, from the edge node, responses generated by the plurality of test applications to the external network.

Further embodiments include a non-transitory computer-readable storage medium comprising instructions that cause a computer system to carry out the above methods, as well as a computer system configured to carry out the above methods.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of a. virtualized computing system in which embodiments described herein may be implemented.

FIG. 2 is a block diagram depicting a software platform according an embodiment.

FIG. 3 is a block diagram of a supervisor Kubernetes master according to an embodiment.

FIG. 4 is a block diagram depicting an infrastructure view of an SD network layer in a virtualized computing system according to an embodiment.

FIG. 5A is a block diagram depicting an initial deployment of an orchestration control plane of a supervisor cluster according to an embodiment.

FIG. 5B is a block diagram depicting a configured duster network in an SD network layer of a supervisor cluster according to an embodiment.

FIG. 6 is a block diagram depicting a logical view of a cluster network according to an embodiment.

FIG. 7 is a flow diagram depicting a method of initial deployment of an orchestration control plane of a supervisor cluster according to an embodiment.

FIG. 8 is a block diagram depicting a logical view of testing network functionality of a supervisor cluster according to an embodiment.

FIG. 9 is a flow diagram depicting a method of testing a cluster network for an application management system according to an embodiment.

DETAILED DESCRIPTION

Techniques for dynamic configuration of a cluster network in a virtualized computing system are described. In embodiments described herein, the virtualized computing system includes a cluster of physical servers (“hosts”) referred to as a “host cluster.” The host cluster includes a virtualization layer, executing on hardware platforms of the hosts, which supports execution of virtual machines (VMs). A virtualization management server manages the host cluster, the virtualization layer, and the VMs executing thereon. The host cluster further includes a software-defined (SD) network layer. SD network provides a set of network services in software, including switching, routing, firewalling, load balancing, quality of service (QoS), and the like. SD network supports provisioning of logical networks that support communication between VMs in a host, between VMs is across hosts, and between VMs and external networks. A network manager manages the SD network layer for the host cluster, sometimes in cooperation with the virtualization management server. Together, the virtualization management server and the network manager form a virtual infrastructure (VI) control plane of the virtualized computing system. The host cluster (or multiple host clusters) and the VI control plane comprise a software-defined data center (SDDC).

In embodiments, the SDDC includes an orchestration control plane that orchestrates compute, network, and storage for an application management system, such as Kubernetes. The orchestration control plane includes components integrated with the virtualization management server and the virtualization layer to enable the host cluster as a “supervisor cluster.” The orchestration control plane further includes components that interface the Kubernetes system with the underlying SDDC infrastructure. In a supervisor cluster, the orchestration control plane uses hosts to implement nodes, and VMs to implement pods, of a Kubernetes system. Kubernetes pods are implemented as “pod VMs,” each of which includes a kernel and container engine that supports execution of containers. The supervisor cluster uses the SD network layer of the SDDC to provide a cluster network for the Kubernetes system.

In embodiments, the orchestration control plane dynamically configures the cluster network for the Kubernetes system during deployment of control VMs that implement the master servers of the Kubernetes system. When a VI admin enables a host cluster as a supervisor cluster, a service in the virtualization management server deploys orchestration control plane components, including components in the virtualization layer and components executing in control VPvis. The control VMs include Kubernetes components (e.g., a Kubernetes application programming interface (API) server and scheduler) and custom orchestration control plane components (e.g., custom controllers and plugins) that function together as a cluster of master servers.

Upon initial deployment of the control VMs, the cluster network is unconfigured or is non-existent. The control VMs are connected to an isolated management network, which is implemented using external virtualization on the physical network (e.g, using a dedicated virtual local area network (VLAN)). In embodiments, the management network is not accessible by users of the Kubernetes system. The management network, however, supports communication between the master server cluster and the VI control plane. This allows a network plugin executing in a master server, in cooperation with the network manager, to deploy and configure a cluster network for the Kubernetes system in the SD network layer. As a part of this configuration, the network plugin connects the cluster network to edge nodes that support external ingress/egress for the cluster network. As a further part of this configuration, the network plugin provisions network ports in guest cluster for the control VMs, and the virtualization management server adds network interfaces to the control VMs to connect them to the cluster network. This allows users to access the master server cluster through an external network. These and further advantages and aspects of the disclosed techniques are described below with respect to the drawings.

FIG. 1 is a block diagram of a virtualized computing system 100 in which embodiments described herein may be implemented. System 100 includes a cluster of hosts 120 (“host cluster 118”) that may be constructed on server-grade hardware platforms such as an ×86 architecture platforms. For purposes of clarity, only one host cluster 118 is shown. However, virtualized computing system 100 can include many of such host clusters 118. As shown, a hardware platform 122 of each host 120 includes conventional components of a computing device, such as one or more central processing units (CPUs) 160, system memory (e.g., random access memory (RAM) 162), one or more network interface controllers (NICs) 164, and optionally local storage 163. CPUs 160 are configured to execute instructions, for example, executable instructions that perform one or more operations described herein, which may be stored in RAM 162. NICs 164 enable host 120 to communicate with other devices through a physical network 180. Physical network 180 enables communication between hosts 120 and between other components and hosts 120 (other components discussed further herein). Physical network 180 can include a plurality of VLANs to provide external network virtualization as described further herein.

In the embodiment illustrated in FIG. 1, hosts 120 access shared storage 170 by using NICs 164 to connect to network 180. in another embodiment, each host 120 contains a host bus adapter (HBA) through which input/output operations (IOs) are sent to shared storage 170 over a separate network (e.g., a fibre channel (FC) network). Shared storage 170 include one or more storage arrays, such as a storage area network (SAN), network attached storage (NAS), or the like. Shared storage 170 may comprise magnetic disks, solid-state disks, flash memory, and the like as well as combinations thereof. In some embodiments, hosts 120 include local storage 163 (e.g., hard disk drives, solid-state drives, etc). Local storage 163 in each host 120 can be aggregated and provisioned as part of a virtual SAN, which is another form of shared storage 170.

A software platform 124 of each host 120 provides a virtualization layer, referred to herein as a hypervisor 150, which directly executes on hardware platform 122. In an embodiment, there is no intervening software, such as a host operating system (OS), between hypervisor 150 and hardware platform 122. Thus, hypervisor 150 is a Type-1 hypervisor (also known as a “bare-metal” hypervisor). As a result, the virtualization layer in host cluster 118 (collectively hypervisors 150) is a bare-metal virtualization layer executing directly on host hardware platforms. Hypervisor 150 abstracts processor, memory, storage, and network resources of hardware platform 122 to provide a virtual machine execution space within which multiple virtual machines (VM) may be concurrently instantiated and executed. One example of hypervisor 150 that may be configured and used in embodiments described herein is a VMware ESXi™ hypervisor provided as part of the VMware vSphere® solution made commercially available by VMware, Inc. of Palo Alto, Calif. 100241 In the example of FIG. 1, host cluster 118 is enabled as a “supervisor cluster,” described further herein, and thus VMs executing on each host 120 include pod VMs 130 and native VMs 140. A pod VM 130 is a virtual machine that includes a kernel and container engine that supports execution of containers, as well as an agent (referred to as a pod VM agent) that cooperates with a controller of an orchestration control plane 115 executing in hypervisor 150 (referred to as a pod VM controller). An example of pod VM 130 is described further below with respect to FIG. 2. VMs 130/140 support applications 141 deployed onto host cluster 118, which can include containerized applications (e.g., executing in either pod VMs 130 or native VMs 140) and applications executing directly on guest operating systems (non-containerized) (e.g., executing in native VMs 140), One specific application discussed further herein is a guest cluster executing as a virtual extension of a supervisor cluster. Some VMs 130/140, shown as support VMs 145, have specific functions within host cluster 118, For example, support VMs 145 can provide control plane functions, edge transport functions, and the like. An embodiment of software platform 124 is discussed further below with respect to FIG. 2.

Host cluster 118 is configured with a software-defined (SD) network layer 175. SD network layer 175 includes logical network services executing on virtualized infrastructure in host cluster 118. The virtualized infrastructure that supports the logical network services includes hypervisor-based components, such as resource pools, distributed switches, distributed switch port groups and uplinks, etc., as well as VM-based components, such as router control VMs, load balancer VMs, edge service VMs, etc. Logical network services include logical switches, logical routers, logical firewalls, logical virtual private networks (VPNs), logical load balancers, and the like, implemented on top of the virtualized infrastructure. in embodiments, virtualized computing system 100 includes edge transport nodes 178 that provide an interface of host cluster 118 to an external network (e.g., a. corporate network, the public Internet, etc.). Edge transport nodes 178 can include a gateway between the internal logical networking of host cluster 118 and the external network. Edge transport nodes 178 can be physical servers or VMs. For example, edge transport nodes 178 can be implemented in support VMs 145 and include a gateway of SD network layer 175. Various clients 119 can access service(s) in virtualized computing system through edge transport nodes 178 (including VM management client 106 and Kubernetes client 102, which as logically shown as being separate by way of example).

Virtualization management server 116 is a physical or virtual server that manages host cluster 118 and the virtualization layer therein. Virtualization management server 116 installs agent(s) 152 in hypervisor 150 to add a host 120 as a managed entity. Virtualization management server 116 logically groups hosts 120 into host cluster 118 to provide cluster-level functions to hosts 120, such as VM migration between hosts 120 (e.g., for load balancing), distributed power management, dynamic VM placement according to affinity and anti-affinity rules, and high-availability. The number of hosts 120 in host cluster 118 may be one or many. Virtualization management server 116 can manage more than one host cluster 118.

In an embodiment, virtualization management server 116 further enables host cluster 118 as a supervisor cluster 101. Virtualization management server 116 installs additional agents 152 in hypervisor 150 to add host 120 to supervisor cluster 101. Supervisor cluster 101 integrates an orchestration control plane 115 with host cluster 118. In embodiments, orchestration control plane 115 includes software components that support a container orchestrator, such as Kubernetes, to deploy and manage applications on host cluster 118. By way of example, a Kubernetes container orchestrator is described herein. in supervisor cluster 101, hosts 120 become nodes of a Kubernetes cluster and pod VMs 130 executing on hosts 120 implement Kubernetes pods. Orchestration control plane 115 includes supervisor Kubernetes master 104 and agents 152 executing in virtualization layer (e.g., hypervisors 150). Supervisor Kubernetes master 104 includes control plane components of Kubernetes, as well as custom controllers, custom plugins, scheduler extender, and the like that extend Kubernetes to interface with virtualization management server 116 and the virtualization layer. For purposes of clarity, supervisor Kubernetes master 104 is shown as a separate logical entity. For practical implementations, supervisor Kubernetes master 104 is implemented as one or more VM(s) 130/140 in host cluster 118. Further, although only one supervisor Kubernetes master 104 is shown, supervisor cluster 101 can include more than one supervisor Kubernetes master 104 in a logical cluster for redundancy and load balancing.

In an embodiment, virtualized computing system 100 further includes a storage service 110 that implements a storage provider in virtualized computing system 100 for container orchestrators. In embodiments, storage service 110 manages lifecycles of storage volumes (e.g., virtual disks) that hack persistent volumes used by containerized applications executing in host cluster 118. A container orchestrator such as Kubemetes cooperates with storage service 110 to provide persistent storage for the deployed applications. in the embodiment of FIG. 1, supervisor Kubernetes master 104 cooperates with storage service 110 to deploy and manage persistent storage in the supervisor cluster environment. Other embodiments described below include a vanilla container orchestrator environment and a guest cluster environment. Storage service 110 can execute in virtualization management server 116 as shown or operate independently from virtualization management server 116 (e.g., as an independent physical or virtual server).

In an embodiment, virtualized computing system 100 further includes a network manager 112. Network manager 112 is a physical or virtual server that orchestrates SD network layer 175. In an embodiment, network manager 112 comprises one or more virtual servers deployed as VMs. Network manager 112 installs additional agents 152 in hypervisor 150 to add a host 120 as a managed entity, referred to as a transport node. In this manner, host cluster 118 can be a cluster 103 of transport nodes. One example of an SD networking platform that can be configured and used in embodiments described herein as network manager 112 and SD network layer 175 is a Vkiware NSX® platform made commercially available by VMware, Inc. of Palo Alto, Calif.

Network manager 112 can deploy one or more transport zones in virtualized computing system 100, including VLAN transport zone(s) and an overlay transport zone. A VLAN transport zone spans a set of hosts 120 (e.g., host cluster 118) and is backed by external network virtualization of physical network 180 (e.g., a VLAN). One example VLAN transport zone uses a management VLAN 182 on physical network 180 that enables a management network connecting hosts 120 and the VI control plane (e.g., virtualization management server 116 and network manager 112). An overlay transport zone using overlay VLAN 184 on physical network 180 enables an overlay network that spans a set of hosts 120 (e.g., host cluster 118) and provides internal network virtualization using software components (e.g., the virtualization layer and services executing in VMs). Host-to-host traffic for the overlay transport zone is carried by physical network 180 on the overlay VLAN 184 using layer-2-over-layer-3 tunnels. Network manager 112 can configure SD network layer 175 to provide a cluster network 186 using the overlay network. The overlay transport zone can be extended into at least one of edge transport nodes 178 to provide ingress/egress between cluster network 186 and an external network.

In an embodiment, system 100 further includes an image registry 190. As described herein, containers of supervisor cluster 101 execute in pod VMs 130. The containers in pod VMs 130 are spun up from container images managed by image registry 190. Image registry 190 manages images and image repositories for use in supplying images for containerized applications.

Virtualization management server 116 and network manager 112 comprise a virtual infrastructure (VI) control plane 113 of virtualized computing system 100. Virtualization management server 116 can include a supervisor cluster service 109, storage service 110, and VI services 108. Supervisor cluster service 109 enables host cluster 118 as supervisor cluster 101 and deploys the components of orchestration control plane 115. VI services 108 include various virtualization management services, such as a distributed resource scheduler (DRS), high-availability (HA) service, single sign-on (SSO) service, virtualization management daemon, and the like. DRS is configured. to aggregate the resources of host cluster 118 to provide resource pools and enforce resource allocation policies. DRS also provides resource management in the form of load balancing, power management, placement, and the like. HA service is configured to pool VMs and hosts into a monitored cluster and, in the event of a failure, restart VMs on alternate hosts in the cluster. A single host is elected as a master, which communicates with the HA service and monitors the state of protected VMs on subordinate hosts. The HA service uses admission control to ensure enough resources are reserved in the cluster for VM recovery when a host fails. SSO service comprises security token service, administration server, directory service, identity management service, and the like configured to implement an SSO platform for authenticating users. The virtualization management daemon is configured to manage objects, such as data centers, clusters, hosts, VMs, resource pools, datastores, and the like.

A VI admin can interact with virtualization management server 116 through a VM management client 106. Through VM management client 106, a VI admin commands virtualization management server 116 to form host cluster 118, configure resource pools, resource allocation policies, and other cluster-level functions, configure storage and networking, enable supervisor cluster 101, deploy and manage image registry 190, and the like.

Kubernetes client 102 represents an input interface for a user to supervisor Kubernetes master 104. Kubernetes client 102 is commonly referred to as kubectl. Through Kubernetes client 102, a user submits desired states of the Kubernetes system, e.g., as YAML documents, to supervisor Kubernetes master 104. In embodiments, the user submits the desired states within the scope of a supervisor namespace. A “supervisor namespace” is a shared abstraction between VI control plane 113 and orchestration control plane 115. Each supervisor namespace provides resource-constrained and authorization-constrained units of multi-tenancy. A supervisor namespace provides resource constraints, user-access constraints, and policies (e.g., storage policies, network policies, etc.). Resource constraints can be expressed as quotas, limits, and the like with respect to compute (CPU and memory), storage, and networking of the virtualized infrastructure (host cluster 118, shared storage 170, SD network layer 175). User-access constraints include definitions of users, roles, permissions, bindings of roles to users, and the like. Each supervisor namespace is expressed within orchestration control plane 115 using a namespace native to orchestration control plane 115 (e.g., a Kubernetes namespace or generally a “native namespace”), which allows users to deploy applications in supervisor cluster 101 within the scope of supervisor namespaces. In this manner, the user interacts with supervisor Kubernetes master 104 to deploy applications in supervisor cluster 101 within defined supervisor namespaces.

FIG. 2 is a block diagram depicting software platform 124 according an embodiment. As described above, software platform 124 of host 120 includes hypervisor 150 that supports execution of VMs, such as pod VMs 130, native VMs 140, and support VMs 145. In an embodiment, hypervisor 150 includes a VM management daemon 213, a host daemon 214, a pod VM controller 216, an image service 218, and network agents 222. VM management daemon 213 is an agent 152 installed by virtualization management server 116. VM management daemon 213 provides an interface to host daemon 214 for virtualization management server 116. Host daemon 214 is configured to create, configure, and remove VMs (e.g., pod VMs 130 and native VMs 140).

Pod VM controller 216 is an agent 152 of orchestration control plane 115 for supervisor cluster 101 and allows supervisor Kubernetes master 104 to interact with hypervisor 150. Pod VM controller 216 configures the respective host as a node in supervisor cluster 101. Pod VM controller 216 manages the lifecycle of pod VMs 130, such as determining when to spin-up or delete a pod VM. Pod VM controller 216 also ensures that any pod dependencies, such as container images, networks, and volumes are available and correctly configured. Pod VM controller 216 is omitted if host cluster 118 is not enabled as a supervisor cluster 101.

Image service 218 is configured to pull container images from image registry 190 and store them in shared storage 170 such that the container images can be mounted. by pod VMs 130. Image service 218 is also responsible for managing the storage available for container images within shared storage 170. This includes managing authentication with image registry 190, assuring providence of container images by verifying signatures, updating container images when necessary, and garbage collecting unused container images. Image service 218 communicates with pod VM controller 216 during spin-up and configuration of pod VMs 130. In some embodiments, image service 218 is part of pod VM controller 216. In embodiments, image service 218 utilizes system VMs 130/140 in support VMs 145 to fetch images, convert images to container image virtual disks, and cache container image virtual disks in shared storage 170.

Network agents 222 comprises agents 152 installed by network manager 112. Network agents 222 are configured to cooperate with network manager 112 to implement logical network services. Network agents 222 configure the respective host as a transport node in a cluster 103 of transport nodes.

Each pod VM 130 has one or more containers 206 running therein in an execution space managed by container engine 208. The lifecycle of containers 206 is managed by pod VM agent 212. Both container engine 208 and pod VM agent 212 execute on top of a kernel 210 (e.g., a Linux® kernel). Each native VM 140 has applications 202 running therein on top of an OS 204. Native VMs 140 do not include pod VAI agents and are isolated from pod VM controller 216. Container engine 208 can be an industry-standard container engine, such as libcontainer, rune, or containerd. Pod VMs 130, pod VM controller 216, and image service 218 are omitted if host cluster 11$ is not enabled as a supervisor cluster 101.

FIG. 3 is a block diagram of supervisor Kubernetes master 104 according to an embodiment. Supervisor Kubernetes master 104 includes application programming interface (API) server 302, a state database 303, a scheduler 304, a scheduler extender 306, controllers 308, and plugins 319. API server 302 includes the Kubemetes API server, kube-api-server (“Kubernetes API 326”) and custom APIs 305. Custom APIs 305 are API extensions of Kubernetes API 326 using either the custom resource/operator extension pattern or the API extension server pattern. Custom APIs 305 are used to create and manage custom resources, such as VM objects and network interface (NIF) objects. API server 302 provides a declarative schema for creating, updating, deleting, and viewing objects.

State database 303 stores the state of supervisor cluster 101 (e.g., etcd) as objects created by API server 302, A user can provide application specification data to API server 302 that defines various objects supported by the API (e.g., as a YAML document). The objects have specifications that represent the desired state. State database 303 stores the objects defined by application specification data as part of the supervisor cluster state. Standard Kubernetes objects (“Kubernetes objects 310”) include namespaces 320, nodes 322, and pods 324 among others. Custom objects 307 are resources defined through custom APIs 305 (e.g., VM objects and NIF objects). Namespaces 320 provide scope for objects. Namespaces are objects themselves maintained in state database 303. A namespace can include resource quotas, limit ranges, role bindings, and the like that are applied to objects declared within its scope. VI control plane 113 creates and manages supervisor namespaces for supervisor cluster 101. A supervisor namespace is a resource-constrained and authorization-constrained unit of multi-tenancy managed by virtualization management server 116. Namespaces 320 inherit constraints from corresponding supervisor cluster namespaces.

Controllers 308 can include, for example, standard Kubernetes controllers (“Kubernetes controllers 316”) (e.g., kube-controller-manager controllers, cloud-controller-manager controllers, etc.) and custom controllers 318. Custom controllers 318 include controllers for managing lifecycle of Kubernetes objects 310 and custom objects 307. For example, custom controllers 318 can include a VM controller 328 configured to manage custom VM objects and a pod VM lifecycle controller (PLC) 330 configured to manage pods 324. A controller 308 tracks objects in state database 303 of at least one resource type. Controller(s) 308 are responsible for making the current state of supervisor cluster 101 come closer to the desired state as stored in state database 303. A controller 308 can carry out action(s) by itself, send messages to API server 302 to have side effects, and/or interact with external systems.

Plugins 319 can include, for example, network plugin 312 and storage plugin 314. Plugins 319 provide a well-defined interface to replace a set of functionality of the Kubernetes control plane. Network plugin 312 is responsible for configuration of SD network layer 175 to deploy and configure the cluster network. Network plugin 312 cooperates with virtualization management server 116 and/or network manager 112 to deploy logical network services of the cluster network. Network plugin 312 also monitors state database for custom objects 307, such as NIF objects. Storage plugin 314 is responsible for providing a standardized interface for persistent storage lifecycle and management to satisfy the needs of resources requiring persistent storage. Storage plugin 314 cooperates with virtualization management server 116 and/or persistent storage manager 110 to implement the appropriate persistent storage volumes in shared storage 170.

Scheduler 304 watches state database 303 for newly created pods with no assigned node. A pod is an object supported by API server 302 that is a group of one or more containers, with network and storage, and a specification on how to execute. Scheduler 304 selects candidate nodes in supervisor cluster 101 for pods. Scheduler 304 cooperates with scheduler extender 306, which interfaces with virtualization management server 116. Scheduler extender 306 cooperates with virtualization management server 116 (e.g., such as with DRS) to select nodes from candidate sets of nodes and provide identities of hosts 120 corresponding to the selected nodes. For each pod, scheduler 304 also converts the pod specification to a. pod VM specification, and scheduler extender 306 asks virtualization management server 116 to reserve a pod VM on the selected host 120. Scheduler 304 updates pods in state database 303 with host identifiers.

Kubernetes API 326, state database 303, scheduler 304, and Kubernetes controllers 316 comprise standard components of a Kubernetes system executing on supervisor cluster 101. Custom controllers 318, plugins 319, and scheduler extender 306 comprise custom components of orchestration control plane 115 that integrate the Kubernetes system with host cluster 118 and VI control plane 113.

FIG. 4 is a block diagram depicting an infrastructure view of an SD network layer in a virtualized computing system according to an embodiment. In the example shown, virtualized computing system 100 includes host cluster 118 having VMs 130/140 executing therein. Each VM 130/140 includes one or more virtual network interfaces to port(s) on a virtual switch 406-2. Virtual switch 406-2 includes ports coupled to NICs 164. NICs 164 are coupled to physical switches 408 on physical network 180. Physical network 180 includes one or more physical routers 410. Physical routers 410 are coupled between physical network 180 and an external network 412 (e.g., a corporate network or the public Internet).

In an embodiment, network manager 112 and virtualization management server 116 comprise VMs in a management cluster 402. In embodiments, management cluster 402 is a logical cluster implemented within host cluster 118. In other embodiments, management cluster 402 is implemented within another host cluster of virtualized computing system 100. Network manager 112 and virtualization management server 116 have virtual network interfaces coupled to ports on a virtual switch 406-1.

In an embodiment, edge transport nodes 178 form an edge cluster 404. In embodiments, edge cluster 404 is a logical cluster implemented within host cluster 118. In other embodiments, edge cluster 404 is implemented within another host duster of virtualized computing system 100. Edge transport nodes 178 have virtual network interfaces coupled to ports on a virtual switch 406-3.

Physical network 180 is logically divided into management VLAN 182, uplink VLAN 416, and overlay VLAN 184 using external network virtualization. Management cluster 402, host cluster 118, and edge cluster 404 are configured in a VLAN transport zone associated with the management VLAN 182. VMs 130/140 requiring access to the management network (i.e., management VLAN 182) are coupled to port groups on a distributed switch 427, which are connected to uplinks associated with management VLAN 182. Distributed switch 427 comprises virtual switches 406-1 . . . 406-3. Host cluster 118 and edge cluster 404 are configured in an overlay transport zone associated with overlay VLAN 184. VMs 130/140 requiring access to the overlay network (i.e., overlay VLAN 184) are coupled to port groups on a distributed switch 420, which are connected to uplinks associated with overlay VLAN 184. Distributed switch 420 comprises virtual switches 406-2 and 406-3. Virtual switches 406-1 . . . 406-3 can include separate software components (not shown) associated with the respective VLAN and overlay transport zones. Edge cluster 404 is configured in another VLAN transport zone associated with uplink VLAN 184. Edge transport nodes 178 are coupled to port groups on virtual switch 406-3, which are connected to uplinks associated with uplink VLAN 184. Edge cluster 404 can route traffic to and receive traffic from external network 412 through physical routers 410 and uplink VLAN 184.

Host cluster 118 includes VMs 130/140 implementing supervisor Kubernetes masters 104 and image registry 190. Host cluster 118 includes pod VMs 130 executing pods 411, and native VMs 140 executing applications 413. All VMs 130/140 of host cluster 118 are connected to a cluster network 514 implemented in the overlay transport zone. Cluster network 514 includes logical switches 422 and a logical router 424, as described further below. Logical switches 422 and logical router 424 are implemented by distributed switch 420. Logical segments formed by logical switches 422 are implemented using L2-over-L3 tunnels on overlay VLAN 184 using a protocol, such as VAN or Geneve. Logical router 424 provides L3 connectivity among the logical segments. Logical router 424 includes uplinks to logical gateways 426 executing in edge transport nodes 178. Logical router 424 can also include a service router (SR) portion in edge transport nodes 178 that provides stateful services, such as a load balancer 428. Cluster network 514 supports communication between VMs 130/140, as well as ingress/egress through edge transport nodes 178. VMs 130/140 implementing supervisor Kuhernetes masters 104 are further connected to the management network for communication with virtualization management server 116 and network manager 112, as discussed further herein.

FIG. 5A is a block diagram depicting an initial deployment of an orchestration control plane of a supervisor cluster according to an embodiment. FIG. 5B is a block diagram depicting a configured cluster network in an SD network layer of a supervisor cluster according to an embodiment. FIG. 6 is a block diagram depicting a logical view of a cluster network according to an embodiment. FIGS. 5A-5B and FIG. 6 are referenced below with respect to the methods of FIGS. 7 and 8.

FIG. 7 is a flow diagram depicting a method 700 of initial deployment of an orchestration control plane of a supervisor cluster according to an embodiment. Method 700 can be performed by virtualization management server 116 and a supervisor Kubernetes master 104 executing on CPU, memory, storage, and network resources managed by a virtualization layer (e.g., a hypervisor) or a host OS.

Method 700 begins at step 702, where a VI admin interacts with virtualization management server 116 to define an enable specification for supervisor cluster 101. In embodiments, the enable specification is a declarative specification for the configuration of supervisor cluster 101, include a network configuration thereof, and supervisor cluster service 109 functions to bring the state of host cluster 118 and SD network layer 175 to the desired state. The Enable specification can include various declarations, including declarations for network configurations. The network configurations can include, for example, specification of VLAN segments, Internet Protocol (IP) pools for pods, IP pools for ingress, IP pools for egress, distributed switch identifier or overlay transport zone identifier, edge cluster identifier, and the like.

At step 704, supervisor cluster service 109 validates host cluster 118 and edge transport node 178 configuration. In embodiments, at step 706, supervisor cluster server 109 verifies network manager 112 is property configured and deployed. At step 708, supervisor cluster service 109 verifies that edge transport nodes 178 are configured to handle North/South traffic for host cluster 118 through a Tier-0 gateway. At step 710, supervisor cluster service 109 verifies that the overlay transport zone has been deployed spanning host cluster 118 and at least one of edge transport nodes 178. At step 712, supervisor cluster service 109 validates the enable specification. For example, supervisor cluster service 109 can verify that there are no overlaps between inputs (e.g., VLANs, IP pools, etc.).

At step 714, supervisor cluster service 109 cooperates with VI service(s) 108 to deploy control VMs 502. Each control VM 502 executes a supervisor Kubernetes master 104. A cluster 504 of control VMs 502 implements a cluster of master servers. In embodiments, each control VM 502 is deployed to a different host 120 using anti-affinity rules. In embodiments, at step 716, supervisor cluster service 109 deploys network plugins 312 to each supervisor ubernetes master 104. Alternatively, network plugins 312 can be part of the VM image used to spin up control VMs 502. At step 717, network plugins connect control VMs 502 to the management network.

The state of initial deployment of orchestration control plane 115 through step 717 is shown in FIG. 5A. As shown, each control YM 502 executes supervisor Kubernetes master 104 and includes a virtual network interface card (vNIC) 508 connected to a management network 510. Virtualization management server 116 and network manager 112 are connected to management network 510. Likewise, components executing in virtualization layer 506 of host cluster 118 are connected to management network 510 (e.g., pod VM controller 216). Virtualization management server 116 and network manager 112 do not have to be on the same IP subnetwork as control VMs 502. Domain name service (DNS) and network time protocol (NTP) servers 515 can be connected to management network 510 to provide respective DNS and NIP services. Edge transport nodes 178 also include a virtual network interface connected to management network 510. Edge transport nodes 178 include a further virtual network interface connected to an uplink network 512. In the example of FIG. 4, management network 510 is implemented using management VLAN 182 and uplink network 512 is implemented using uplink VLAN 416.

Returning to FIG. 7, at step 718, a network plugin 312 creates cluster network 514 for the Kubernetes system. In embodiments, at step 720, network plugin 312 creates a tier-1 gateway (e.g., a. Tier-1 logical router) having an uplink connected to the Tier-0 gateways in edge transport nodes 178. At step 722, network plugin 312 creates logical segments (e.g., deploys logical switches) for each system namespace defined by supervisor Kubernetes masters 104. At step 724, network plugin 312 deploys one or more load balancers in edge transport nodes 178.

The state of cluster network after step 718 is shown in FIG. 6. As shown, a tier-1 gateway 604 has an uplink port connected to a tier-0 gateway 602. Tier-0 gateway 602 has an uplink connected to uplink network 512. Tier-0 gateway 602 is implemented by a logical gateway 426 in edge transport nodes 178. A pair of edge transport nodes 178 can provide an active-passive pair of logi cal gateways 426 to implement Tier-0 gateway 602. Tier-1 gateway 604 is implemented using a logical router 424, which includes both a distributed router (software in distributed switch 420) and a service router executing in edge transport nodes 178. The service router portion of Tier-1 gateway 604 provides load balancer 428. Tier-(gateway 604 is connected to logical segments 608-1 . . . 608-3 implemented by logical switches 422. Together, logical segments 608 and tier-1 gateway 604 comprise cluster network 514. VMs 130/140 are connected to logical segment 608-2, which corresponds to a namespace 610-1. VMs 130/140 are connected to a logical segment 608-3, which corresponds to a namespace 610-2. By way of example, two namespaces 610 are shown, but in general cluster network 514 can include logical segment(s) for one or more namespaces. At the end of method 700, control \TMs 502 are not yet connected to cluster network 514. Rather, control VMs 502 are only connected to management network 510.

As described above, supervisor cluster 101 includes a multi-homed network for running a container orchestrator (e.g., Kubernetes). Virtualization management server 116, network manager 112, edge transport nodes 178, and supervisor Kubernetes master 104 communicate over a management network (e.g., management VLAN 182). Applications executing in VMs 130/140 and deployed by supervisor Kubernetes master 104 communicate over a cluster network (e.g., implemented using overlay VLAN 184). Users may desire to execute external applications on systems connected by the external network 412, where the external applications communicate with supervisor Kubernetes masters 104 and managed applications executing in pods 411 and native VMs 140 of supervisor cluster 101. For example, the external applications can be test applications designed to test functionality of the cluster network in supervisor cluster 101. One technique to achieve such testing requires that the supervisor cluster resources (i.e., supervisor Kubernetes masters 104 and managed applications) be given IP addresses on external network 412 so that the external tests can access those resources. However, such a technique is expensive in terms of utilized network resources on external network 412. There may be insufficient IP addresses on external network 412 to he used to access supervisor cluster resources and/or a network administrator of external network 412 may be unwilling to supply the necessary IP addresses. Another technique is for the external tests to be rewritten to access virtual Ips (VIPs) exposed by edge transport nodes 178 in order to access supervisor Kubernetes masters 104 and managed applications. However, such a technique is expensive in that developers would be required to rewrite the test applications and be required to understand the network structure of supervisor cluster 101.

FIG. 8 is a block diagram depicting a logical view of testing network functionality of supervisor cluster 101 according to an embodiment. Wrapped test applications 802W execute on systems connected to external network 412. An edge transport node 178 (also referred to as edge node) provides a bridge between external network 412 and a cluster network 804. Cluster network 804 comprises a Tier-1 logical router and logical network segments, as discussed above, managed by network manager 112. Supervisor Kubernetes master(s) 104 and VMs 130/140 executing managed applications 806 are connected to cluster network 804. Managed applications 806 are deployed and managed by supervisor Kubernetes master(s) 104 (e.g., in pod VMs 130 and/or native VMs 140).

Wrapped test applications 802W are wrapped versions of test applications 802. For each test application 802, a wrapper is provided to deploy the test application to edge transport node 178. Test applications 802 are then executed on edge transport node 178, which has access to cluster network 804. The wrapper for each test application 802 then receives the results from edge transport node 178. Wrapped test applications 802W access edge transport node 178 using this IP address on external network 412. In an embodiment, the wrapper for each test application 802 executes a secure shell program (e.g., ssh) to access edge transport node 178. In this manner, test applications 802 are uploaded to edge transport node 178 and executed. Test applications 802 do not need to be rewritten, since they execute on edge transport node 178 connected to cluster network 804. In embodiments, test applications 802 comprise applications designed to test functionality of cluster network 804. The test applications can access supervisor Kubemetes master 104 to deploy, access, and destroy managed applications 806 during testing of cluster network 804. Since test applications 802 execute on edge transport node 178 having access to cluster network 804, test applications 802 do not need access to the management network and do not consume IP addresses on physical network 180. Rather, the IP addresses used by test applications 802 are virtual within the scope of SD network layer 175 as managed by network manager 112.

FIG. 9 is a flow diagram depicting a method of testing a cluster network for an application management system according to an embodiment. The application management system includes a cluster of virtual machines (VMs), the VMs executing on a virtualization layer in a cluster of hosts connected to a physical network, and the application management system integrated with the virtualization layer. In embodiments described above, the application management system is supervisor cluster 101. Method 900 can be performed by component(s) executing on CPU, memory, storage, and network resources managed by a virtualization layer (e.g., a hypervisor) or a host OS.

Method 900 begins at step 902, where a user executes wrapped test applications 802W on compute system(s) connected to external network 412. In embodiments, at step 904, wrapped test applications 802W target a virtual IP address exposed by supervisor cluster 101 to provide external access. At step 906, edge transport node 178 receives test applications 802 from external network 412. Test applications 802 are uploaded to edge transport node 178 by execution of wrapped test applications 802W. In an embodiment, wrapped test applications 802W establish a secure shell session with edge transport node 178 using the virtual IP address to upload test applications 802 thereto and begin execution thereof.

At step 908, edge transport node 178 executes test applications 802 to test cluster network 804. For example, at step 910, test applications 802 communicate with supervisor Kubernetes master 104 over cluster network 804. At step 912, test applications 802 can communicate with managed applications 806 over cluster network 804. At step 914, test applications can consume virtual IP addresses of SD network layer 175, as opposed to IP addresses on physical network 180. At step 916, edge transport node 178 returns responses generated by test applications 802 to external network 412. At step 918, wrapped test applications 802W output the responses received from edge transport node 178 to the user.

One or more embodiments of the invention also relate to a device or an apparatus for performing these operations. The apparatus may be specially constructed for required purposes, or the apparatus may be a general-purpose computer selectively activated or configured by a computer program stored in the computer. Various general-purpose machines may be used with computer programs written in accordance with the teachings herein, or it may be more convenient to construct a more specialized apparatus to perform the required operations.

The embodiments described herein may be practiced with other computer system configurations including hand-held devices, microprocessor systems, microprocessor-based or programmable consumer electronics, minicomputers, mainframe computers, etc.

One or more embodiments of the present invention may be implemented as one or more computer programs or as one or more computer program modules embodied in computer readable media. The term computer readable medium refers to any data storage device that can store data which can thereafter be input to a computer system. Computer readable media may be based on any existing or subsequently developed technology that embodies computer programs in a manner that enables a computer to read the programs. Examples of computer readable media are hard drives, NAS systems, read-only memory (ROM), RAM, compact disks (CDs), digital versatile disks (DVDs), magnetic tapes, and other optical and non-optical data storage devices. A computer readable medium can also be distributed over a network-coupled computer system so that the computer readable code is stored and executed in a distributed fashion.

Although one or more embodiments of the present invention have been described in some detail for clarity of understanding, certain changes may be made within the scope of the claims. Accordingly, the described embodiments are to be considered as illustrative and not restrictive, and the scope of the claims is not to be limited to details given herein but may be modified within the scope and equivalents of the claims. In the claims, elements and/or steps do not imply any particular order of operation unless explicitly stated in the claims.

Virtualization systems in accordance with the various embodiments may be implemented as hosted embodiments, non-hosted embodiments, or as embodiments that blur distinctions between the two. Furthermore, various virtualization operations may be wholly or partially implemented in hardware. For example, a hardware implementation may employ a look-up table for modification of storage access requests to secure non-disk data.

Many variations, additions, and improvements are possible, regardless of the degree of virtualization. The virtualization software can therefore include components of a host, console, or guest OS that perform virtualization functions.

Plural instances may be provided for components, operations, or structures described herein as a single instance. Boundaries between components, operations, and data stores are somewhat arbitrary, and particular operations are illustrated in the context of specific illustrative configurations. Other allocations of functionality are envisioned and may fall within the scope of the invention. In general, structures and functionalities presented as separate components in exemplary configurations may be implemented as a combined structure or component. Similarly, structures and functionalities presented as a single component may be implemented as separate components. These and other variations, additions, and improvements may fall within the scope of the appended claims. 

1. A method of testing a cluster network for an application management system having a cluster of virtual machines (VMs), the VMs executing on a virtualization layer in a cluster of hosts connected to a physical network, the application management system integrated with the virtualization layer, the method comprising: receiving, at an edge node from an external network, a plurality of test applications; executing, at the edge node, the plurality of test applications, the edge node connected to the cluster network, the plurality of test applications communicating, through the cluster network, with a master server of the application management system, and with applications executing in the VMs managed by the master server, the cluster network being a software-defined network isolated from the external network by the edge node, the plurality of test applications consuming virtual internet protocol (IP) addresses of the cluster network; and returning, from the edge node, responses generated by the plurality of test applications to the external network.
 2. The method of claim 1, wherein the edge node receives the plurality of test applications through a communication from the external network targeting a virtual Internet Protocol (IP) address exposed by the application management system.
 3. The method of claim 1, wherein the cluster network comprises a logical router and at least one logical switch provisioned in a software-defined (SD) network layer of the cluster of hosts, the SD network layer managed by a network manager, the logical router connected between the edge node and the logical switches.
 4. The method of claim 3, wherein the master server is connected to a first logical switch of the logical switches, and wherein the applications executing in the VMs managed by the master server are connected to at least one logical switch of the logical switches.
 5. The method of claim 3, wherein the logical router is a Tier-1 router connected to a Tier-0 gateway in the edge node, the Tier-0 gateway connected to the external network.
 6. The method of claim 1, further comprising: executing, on a computer system connected to the external network, a plurality of wrapped test applications, the wrapped test applications communicating with the edge node to provide the plurality of test applications.
 7. The method of claim 1, wherein the applications executing in the VMs managed by the master server comprise containerized applications executing in pod VMs of the VMs.
 8. A non-transitory computer readable medium comprising instructions to be executed in a computing device to cause the computing device to carry out a method of testing a cluster network for an application management system having a cluster of virtual machines (VMs), the VMs executing on a virtualization layer in a cluster of hosts connected to a physical network, the application management system integrated with the virtualization layer, the method comprising: receiving, at an edge node from an external network, a plurality of test applications; executing, at the edge node, the plurality of test applications, the edge node connected to the cluster network, the plurality of test applications communicating, through the cluster network, with a master server of the application management system, and with applications executing in the VMs managed by the master server, the cluster network being a software-defined network isolated from the external network by the edge node, the plurality of test applications consuming virtual internet protocol (IP) addresses of the cluster network; and returning, from the edge node, responses generated by the plurality of test applications to the external network.
 9. The non-transitory computer readable medium of claim 8, wherein the edge node receives the plurality of test applications through a communication from the external network targeting a virtual Internet Protocol (IP) address exposed by the application management system.
 10. The non-transitory computer readable medium of claim 8, wherein the cluster network comprises a logical router and at least one logical switch provisioned in a software-defined (SD) network layer of the cluster of hosts, the SD network layer managed by a network manager, the logical router connected between the edge node and the logical switches.
 11. The non-transitory computer readable medium of claim 10, wherein the master server is connected to a first logical switch of the logical switches, and wherein the applications executing in the VMs managed by the master server are connected to at least one logical switch of the logical switches.
 12. The non-transitory computer readable medium of claim 10, wherein the logical router is a Tier-1 router connected to a Tier-0 gateway in the edge node, the Tier-0 gateway connected to the external network.
 13. The non-transitory computer readable medium of claim 8, wherein a plurality of wrapped test applications is executed on a computer system connected to the external network, and the wrapped test applications communicating with the edge node to provide the plurality of test applications.
 14. The non-transitory computer readable medium of claim 8, wherein the applications executing in the VMs managed by the master server comprise containerized applications executing in pod VMs of the VMs.
 15. A virtualized computing system, comprising: a host cluster of hosts executing a virtualization layer on hardware platforms of the hosts, the hosts connected by a physical network, the virtualization layer configured to support execution of virtual machines (VMs); an application management system having a cluster of the VMs, the application management system integrated with the virtualization layer; a software-defined (SD) network layer of the host cluster configured to provide a cluster network for the application management system; and an edge node connected to the cluster network and configured to: receive, from an external network, a plurality of test applications; execute the plurality of test applications, the plurality of test applications communicating, through the cluster network, with a master server of the application management system, and with applications executing in the cluster of VMs managed by the master server, the cluster network being a software-defined network isolated from the external network by the edge node, the plurality of test applications consuming virtual internet protocol (IP) addresses of the cluster network; and returning responses generated by the plurality of test applications to the external network.
 16. The virtualized computing system of claim 15, wherein the edge node receives the plurality of test applications through a communication from the external network targeting a virtual Internet Protocol (IP) address exposed by the application management system.
 17. The virtualized computing system of claim 15, wherein the cluster network comprises a logical router and at least one logical switch provisioned in a software-defined (SD) network layer of the cluster of hosts, the SD network layer managed by a network manager, the logical router connected between the edge node and the logical switches.
 18. The virtualized computing system of claim 17, wherein the master server is connected to a first logical switch of the logical switches, and wherein the applications executing in the VMs managed by the master server are connected to at least one logical switch of the logical switches.
 19. The virtualized computing system of claim 17, wherein the logical router is a Tier-1 router connected to a Tier-0 gateway in the edge node, the Tier-0 gateway connected to the external network.
 20. The virtualized computing system of claim 15, wherein the applications executing in the VMs managed by the master server comprise containerized applications executing in pod VMs of the VMs. 